module.exports = {
    render: function () {
        var checkList = new icu.checkList({
            checkAll: true,
            showKey: 'name',
            getKey: 'name',
            getType: 'array',
            data: [{
                name: '单选测试1',
                value: 'value1'
            }, {
                name: '单选测试2',
                value: 'value2'
            }, {
                name: '单选测试3',
                value: 'value3'
            }],
            onChange: function (event, value, allValue) {
                console.log(event, value, allValue);
            },
        });
        this.$el.find('#CheckList').append(checkList.html)
        this.$el.find('#get').click(function () {
            checkList.get(function (emsg, value) {
                icu.alert.normal({
                    text: JSON.stringify(value),
                })
            });
        });

        checkList.set(['value1']);
        checkList.readonly(['value1'], 'value');





    },
};